// com/shuaixuan/shuaixuan.js
Component({
  /**
   * 组件的属性列表
   */
  properties: {
  
  },

  /**
   * 组件的初始数据
   */
  data: {
    isel1: false,
    isel2: false,
    isel3: false,
    fontcolor1: '#626262',
    fontcolor2: '#626262',
    fontcolor3: '#626262',
  },

  /**
   * 组件的方法列表
   */
  methods: {
    whichsel:function(event){
      var that=this;
      var id=event.target.id;
      if(id=="one"){
        that.setData({
          isel1: true,
          isel2: false,
          isel3: false,
          fontcolor1: '#02a0e9',
          fontcolor2: '#626262',
          fontcolor3: '#626262',
        })
      }
       else if (id == "two") {
        that.setData({
          isel1: false,
          isel2: true,
          isel3: false,
          fontcolor1: '#626262',
          fontcolor2: '#02a0e9',
          fontcolor3: '#626262',
        })
      }
      else if(id=="three"){
        that.setData({
          isel1: false,
          isel2: false,
          isel3: true,
          fontcolor1: '#626262',
          fontcolor2: '#626262',
          fontcolor3: '#02a0e9',
        })
      }
    }
  }
})
